{extend name="default/template/base_index" /}

{block name="area_header"}
<script type="text/javascript" src="__CDN__/jquery-datetimepicker/jquery.datetimepicker.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="__CDN__/jquery-datetimepicker/jquery.datetimepicker.css">
{/block}

{block name="area_body"}
	{include file="default/Widget/topbar" /}
	<div class="admin-main container-fluid">
		{include file="default/Widget/left" /}
		<div class="admin-main-content">
			{include file="default/Widget/breadcrumb" /}
			<div class="table-responsive well">
	<!-- 过滤\查询按钮 -->


				<h2>设备列表</h2>
				<h4>
					全部设备类型
					<div>
						{volist name="all_device"  id="vo"}
							【{$key}:{$vo}】
						{/volist}
					</div>
				</h4>
				<div class="margin-sm clearfix">
				</div>
	<table class="table table-striped table table-hover  table-condensed">
		<thead>
			<tr>
				<th>
					设备类型
				</th>
				<th>
					版本
				</th>
				<th>
					名称
				</th>
				<th>
					更新包地址
				</th>
				<th>
					版本描述
				</th>
				<th>
					操作
				</th>
			</tr>
		</thead>
		<tbody>
			{empty name="list"}
				<tr>
					<td colspan="8" class="text-center">{:L('NO_DATA')}</td>
				</tr>
				{else/}
				{volist name="list" id="vo"}
					<tr>

						<td>{$vo['device_type']}-{$all_device[$vo['device_type']]}</td>
						<td>{$vo.version}</td>
						<td>{$vo.device_name}</td>
						<td>{$vo.url}</td>
						<td>{$vo.version_desc}</td>
						<td>
							<a href="{:url('Admin/SunsunDeviceVersion/morever',array('device_type'=>$vo['device_type']))}?ret_url=__SELF__" class="btn btn-default btn-sm"><i class="fa fa-edit"></i>版本管理</a>
						</td>
				{/volist}
			{/empty}
		</tbody>
	</table>
</div>
		</div>
		<!-- END admin-main-content -->
	</div>
		<!-- END admin-main-->
<script type="text/javascript">
	$(function() {

		$('#startdatetime').datetimepicker({
			lang: 'ch',
			format:'Y-m-d H:i:s',
			// format:'Y-m-d',
			// timepicker:false,
		});
		$('#enddatetime').datetimepicker({
			lang: 'ch',
			format:'Y-m-d H:i:s',
		});
	});
</script>
{/block}

{block name="area_footer"}

{/block}
